package com.ttx.pattern.example.composite.after;

import java.util.Collection;

/**
 * @author TimFruit
 * @date 2019/7/8 15:36
 */

public abstract class Component implements Iterable<Component>{
    
    public void add(Component component){
        throw new UnsupportedOperationException();
    }
    
    public void remove(Component component){
        throw new UnsupportedOperationException();
    }
    
    public Component getChild(int i){
        throw new UnsupportedOperationException();
    }
    
    public Collection<Component> getChildren(){
        throw new UnsupportedOperationException();
    }
    
    public String getName(){
        throw new UnsupportedOperationException();
    }
    
    
    
    // 操作 
    
    public void operation(){
        throw new UnsupportedOperationException();
    }
    
}
